﻿<!DOCTYPE html>
<html>
<head>
<title>ZeroClipboard Test</title>
<meta charset="utf-8">
<style type="text/css">
.line{margin-bottom:20px;}

</style>
<script type="text/javascript" src="jquery-1.8.3.js"></script>
<script type="text/javascript" src="jquery.zclip.js"></script>
</head>
<body>
<table>
	<tr><td>ddd</td></tr>
</table>
<div id="content">http://www.sunzhenghua.com/blog</div>
<button id="copy-button">点击复制该链接</button>
 

</body>
</html>
<script type="text/javascript">
$(document).ready(function(){
 
    $('#copy-button').zclip({
        path : 'ZeroClipboard.swf',
        copy : $('#content').text()
    });
     
    // 当点击 Id 为 copy-button 的按钮时
    // Id 为 content 中的内容将会被复制
   
});
</script>